﻿using mscook.core.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.services
{
    public interface ICookBookService
    {
        void SaveOrUpdate(CookBook CookBook);
        CookBook Get(string id);
        IList<CookBook> SelectPageList(int start, int limit, out long total);
        bool Delete(string id);
        IList<CookBook> SelectListShowOnHome();
        IList<CookBook> SelectListShowOnHome3D();
        IList<CookBook> SelectLimitbyIds(IList<string> resourceIds, int start, int limit, out long total);
        IList<CookBook> GetAll();
        IList<CookBook> GetByKeyword(string keyword, int start, int limit, out long total);
        IList<CookBook> SelectPageList(int start, int limit, out long total, string cookBookName);
        IList<CookBook> SelectPageListByExpressions(int start, int limit, out long total, System.Linq.Expressions.Expression<Func<CookBook, bool>> expression);
    }
}
